package com.orhonit.ipb.portal;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author yawn
 */
@SpringBootApplication(scanBasePackages="com.orhonit.ipb")
@EnableAsync
@MapperScan("com.orhonit.ipb.portal.mapper")
@EnableFeignClients({"com.orhonit.ipb.security.auth.client.feign"})
@EnableEurekaClient
//@EnableFeignClients(basePackages={"com.orhonit.ipb.portal","com.orhonit.ipb.security.auth.client"})
public class JpaBootstrap {

	public static void main(String[] args) {
		//SpringApplication.run(JpaBootstrap.class, args);
		new SpringApplicationBuilder(JpaBootstrap.class).web(true).run(args);
	}
}
